package service;

import dao.impl.AccountDao;
import dao.impl.AccountDaoImpl;
import javabean.Account;

public class AccountServiceImpl implements AccountService {
    AccountDao accountDao =new AccountDaoImpl();
    @Override
    public void registUser(Account account) {
        accountDao.saveAccount(account);
    }

    @Override
    public Account showAccountByAccountId(Integer accountId) {
        return accountDao.queryAccountByAccountId(accountId);
    }

    @Override
    public int deleteAccountByAccountId(Integer accountId) {
        return accountDao.deleteAccountByAccountId(accountId);
    }
}
